.class public Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;
.super Lcom/esfile/screen/recorder/base/BaseActivity;
.source "SinglePicturePreviewActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$d;,
        Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$e;,
        Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$c;,
        Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;,
        Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$a;,
        Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;
    }
.end annotation


# instance fields
.field private a:Landroid/net/Uri;

.field private b:Ljava/lang/String;

.field private c:Z

.field private d:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)Landroid/net/Uri;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->a:Landroid/net/Uri;

    return-object p0
.end method

.method private a(Ljava/io/FileDescriptor;)Ljava/lang/String;
    .locals 2

    .line 4
    new-instance v0, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v0}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    const/4 v1, 0x1

    .line 5
    iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    const/4 v1, 0x0

    .line 6
    invoke-static {p1, v1, v0}, Landroid/graphics/BitmapFactory;->decodeFileDescriptor(Ljava/io/FileDescriptor;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    .line 7
    iget-object p1, v0, Landroid/graphics/BitmapFactory$Options;->outMimeType:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->b:Ljava/lang/String;

    return-object p0
.end method

.method private y()V
    .locals 1

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/i;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/i;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)V

    invoke-static {v0}, Les/xc;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method private z()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->b:Ljava/lang/String;

    const-string v1, "gif"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->c:Z

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "is gif:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v1, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->c:Z

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "SinglePicturePreview"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->c:Z

    if-eqz v0, :cond_0

    .line 4
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$a;

    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v1

    sget v2, Les/x4;->durec_preview_image_gif:I

    .line 5
    invoke-virtual {p0, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    invoke-direct {v0, p0, v1, v2}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$a;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;Landroid/view/View;Landroid/widget/ImageView;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->d:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;

    goto :goto_0

    .line 6
    :cond_0
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;

    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v1

    sget v2, Les/x4;->durec_preview_image_jpg:I

    .line 7
    invoke-virtual {p0, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;

    invoke-direct {v0, p0, v1, v2}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;Landroid/view/View;Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->d:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;

    .line 8
    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->d:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->d()V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->d:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->g()V

    return-void
.end method


# virtual methods
.method public synthetic a(Landroid/graphics/Bitmap;)V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->d:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->a(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->d:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->a(Landroid/graphics/Bitmap;)V

    return-void
.end method

.method public synthetic b(Ljava/lang/String;)V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->d:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->c(Ljava/lang/String;)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->d:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->a(Z)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->d:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->a(Ljava/lang/String;)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 2
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 3
    sget p1, Les/y4;->durec_single_picture_preview:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    if-nez p1, :cond_0

    .line 5
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 6
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Intent;->getType()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->b:Ljava/lang/String;

    .line 7
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "type:"

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->b:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "SinglePicturePreview"

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->b:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_3

    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->b:Ljava/lang/String;

    const-string v0, "image"

    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_1

    goto :goto_0

    .line 9
    :cond_1
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->a:Landroid/net/Uri;

    if-nez p1, :cond_2

    .line 10
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 11
    :cond_2
    new-instance p1, Lcom/esfile/screen/recorder/picture/picker/q;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/picture/picker/q;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)V

    invoke-static {p1}, Les/xc;->a(Ljava/lang/Runnable;)V

    return-void

    .line 12
    :cond_3
    :goto_0
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "SinglePicturePreview"

    return-object v0
.end method

.method public synthetic v()V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->a:Landroid/net/Uri;

    invoke-static {p0, v0}, Les/rc;->b(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_1

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    if-nez v0, :cond_0

    .line 3
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/a;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)V

    invoke-static {v0}, Les/xc;->b(Ljava/lang/Runnable;)V

    return-void

    .line 4
    :cond_0
    :try_start_0
    invoke-static {p0}, Lcom/esfile/screen/recorder/utils/g;->i(Landroid/content/Context;)I

    move-result v1

    .line 5
    invoke-static {p0}, Lcom/esfile/screen/recorder/utils/g;->f(Landroid/content/Context;)I

    move-result v2

    .line 6
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->a:Landroid/net/Uri;

    const-string v4, "r"

    invoke-virtual {v0, v3, v4}, Landroid/content/ContentResolver;->openFileDescriptor(Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;

    move-result-object v0

    mul-int v1, v1, v2

    .line 7
    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/utils/d;->a(Ljava/io/FileDescriptor;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 8
    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/o;

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/picture/picker/o;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;Landroid/graphics/Bitmap;)V

    invoke-static {v1}, Les/xc;->b(Ljava/lang/Runnable;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 9
    :catch_0
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/a;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)V

    invoke-static {v0}, Les/xc;->b(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 10
    :cond_1
    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/u;

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/picture/picker/u;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;Ljava/lang/String;)V

    invoke-static {v1}, Les/xc;->b(Ljava/lang/Runnable;)V

    :goto_0
    return-void
.end method

.method public synthetic w()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->z()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->y()V

    return-void
.end method

.method public synthetic x()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/a;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)V

    invoke-static {v0}, Les/xc;->b(Ljava/lang/Runnable;)V

    return-void

    .line 3
    :cond_0
    :try_start_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->a:Landroid/net/Uri;

    const-string v2, "r"

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentResolver;->openFileDescriptor(Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;

    move-result-object v0

    .line 4
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->a(Ljava/io/FileDescriptor;)Ljava/lang/String;

    move-result-object v0

    .line 5
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 6
    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->b:Ljava/lang/String;

    .line 7
    :cond_1
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/p;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/p;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)V

    invoke-static {v0}, Les/xc;->b(Ljava/lang/Runnable;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 8
    :catch_0
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/a;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)V

    invoke-static {v0}, Les/xc;->b(Ljava/lang/Runnable;)V

    :goto_0
    return-void
.end method
